package com.example.homework.entity;

public class Products {
    private String name;
    private double price;
    private int stock=0;
    private Long id;

    public Products() {
    }

    public Products(String name,double price,int stock,Long id) {
        this.name = name;
        this.price = price;
        this.stock=stock;
        this.id=id;
    }

    public Products(String name, double price, Long id) {
        this.name = name;
        this.price = price;
        this.id=id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
}
